home *** CD-ROM | disk | FTP | other *** search
Wrap
!ifdef NO_COMPRESSION SetCompress off SetDatablockOptimize off !endif !ifdef NO_CRC CRCCheck off !endif Name "Network Telescope Control" Caption "Trefach Astronomy Centre Network Telescope Control" OutFile NTC-Setup.Exe LicenseText "You must read the following license before installing:" LicenseData license.txt ComponentText "This will install the Trefach Astronomy Centre Network Telescope Control on your computer:" InstType Normal AutoCloseWindow false ShowInstDetails show DirText "Please select a location to install Network Telescope Control (or use the default):" SetOverwrite on SetDateSave on !packhdr tmp.dat "C:\Program Files\ExeShield\upx.exe -9 tmp.dat" InstallDir "$PROGRAMFILES\Trefach Astronomy Centre\Network Telescope Control" InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Trefach Astronomy Centre\Network Telescope Control" "" Section "Network Telescope Control (required)" SectionIn 1 2 SetOutPath $INSTDIR File ntc_server.exe File ntc_client.exe File server.ini File client.ini File ntc.hlp File ntc.gid File ntc.cnt File readme.txt SectionEnd Section "Trefach" SectionIn 1 2 SetOutPath "$INSTDIR\Trefach" File trefach\*.* SectionEnd Section "Cartes du Ciel plugin" SectionIn 2 IfFileExists "$PROGRAMFILES\Ciel\*.*" 0 dont_install_cdc_plugin SetOutPath "$PROGRAMFILES\Ciel" File cdc\NTC.tid File cdc\ntc.hlp File cdc\ntc.gid File cdc\ntc.cnt File cdc\ciel.ini dont_install_cdc_plugin: IfFileExists "$PROGRAMFILES\Ciel\*.*" exit_plugin 0 MessageBox MB_OK "Cant find Cartes du Ciel" exit_plugin: SectionEnd Section "Network Telescope Control Start Menu Group" SectionIn 1 2 SetOutPath "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\Network Telescope Control (server).lnk" "$INSTDIR\ntc_server.exe" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\Network Telescope Control (client).lnk" "$INSTDIR\ntc_client.exe" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\Trefach.lnk" "$INSTDIR\Trefach\trefach.htm" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\NTC Help.lnk" "$INSTDIR\ntc.hlp" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\Read Me.lnk" "$INSTDIR\readme.txt" CreateShortCut "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\Uninstall Network Telescope Control.lnk" "$INSTDIR\uninstall-ntc.exe" SectionEnd Section "Make Network Telescope Control Desktop Icon" SectionIn 1 2 SetOutPath $INSTDIR CreateShortCut "$DESKTOP\Network Telescope Control (server).lnk" "$INSTDIR\ntc_server.exe" CreateShortCut "$DESKTOP\Network Telescope Control (client).lnk" "$INSTDIR\ntc_client.exe" SectionEnd Section -post SetOutPath $INSTDIR Delete $INSTDIR\uninstall-ntc.exe WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Trefach Astronomy Centre\Network Telescope Control" "" $INSTDIR WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Trefach Astronomy Centre\Network Telescope Control" "DisplayName" "Network Telescope Control (remove only)" WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Trefach Astronomy Centre\Network Telescope Control" "UninstallString" '"$INSTDIR\uninstall-ntc.exe"' MessageBox MB_YESNO|MB_ICONQUESTION "View readme file?" IDNO no_read_me ExecShell open '$INSTDIR\readme.txt' no_read_me: writeuninstaller $INSTDIR\uninstall-ntc.exe BringToFront SectionEnd UninstallText "This will uninstall Network Telescope Control from your system:" Section Uninstall DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Trefach Astronomy Centre\Network Telescope Control" DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Trefach Astronomy Centre\Network Telescope Control" Delete "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control\*.lnk" RMDir "$SMPROGRAMS\Trefach Astronomy Centre\Network Telescope Control" IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\a*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\b*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\c*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\d*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\e*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\f*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\g*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\h*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\i*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\j*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\k*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\l*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\m*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\n*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\o*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\p*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\q*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\r*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\s*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\t*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\u*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\v*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\w*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\x*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\y*.*" dont_remove_tac 0 IfFileExists "$SMPROGRAMS\Trefach Astronomy Centre\z*.*" dont_remove_tac 0 RMDir "$SMPROGRAMS\Trefach Astronomy Centre" dont_remove_tac: Delete "$DESKTOP\Network Telescope Control.lnk" Delete $INSTDIR\ntc_server.exe Delete $INSTDIR\ntc_client.exe Delete $INSTDIR\readme.txt Delete $INSTDIR\uninstall-ntc.exe RMDir /r $INSTDIR\Trefach RMDir $INSTDIR IfFileExists $INSTDIR 0 install_dir_dont_exist MessageBox MB_YESNO|MB_ICONQUESTION "Remove all files in your Network Telescope Control directory? (If you have anything you created that you want to keep, click No)" IDNO install_dir_dont_exist Delete $INSTDIR\*.* RMDir /r $INSTDIR IfFileExists $INSTDIR 0 install_dir_gone MessageBox MB_OK|MB_ICONEXCLAMATION "Note: $INSTDIR could not be removed." goto install_dir_dont_exist install_dir_gone: IfFileExists $INSTDIR\.. 0 install_dir_dont_exist RMDir $INSTDIR\.. install_dir_dont_exist: SectionEnd